import component from './alert.vue'
import Vue from 'Vue'
const Constructor = Vue.extend(component)
let instance = null

export default (options,title) => {
    instance || (instance = new Constructor({
        el: document.createElement('div')
    }))
    console.log(instance);
    instance.$data.options = options
    instance.$data.title = title
    document.body.appendChild(instance.$el)
}